package com.iwuke.dance.wallet.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author: 魏从响
 * @date: 2025/9/19
 */
public class ListETransactionRecordBean implements Serializable {


    /**
     * income : 0.01
     * month : 2025-09
     * transactions : [{"id":39,"orderId":"219975","userId":"123123131","walletId":1955891278185435136,"txnType":1,"txnSubType":"1.1","amount":0.01,"status":0,"remark":"123123131","clientIp":"123123131","deviceId":null,"riskLevel":0,"reviewStatus":0,"version":0,"createTime":"2025-09-16 17:10:14","updateTime":"2025-09-16 17:10:14","withdrawAccount":null,"giftName":null,"giftId":null,"num":null,"price":null,"totalPrice":null,"relatedUserId":null,"rechargeLocation":"123123131","thirdPartyOrderNo":"wx16171013825115cab94ba1263685610001","thirdPartyType":null,"isDeleted":0,"ebalanceAfter":98576.99,"ebalanceBefore":98577}]
     * expense : 0
     */

    public boolean isHeader = true;
    public ListETransactionRecordBean() {
        this.isHeader = true; // 在构造方法中初始化
    }
    public boolean isHeader() {
        return isHeader;
    }

    public double income;//收入
    public String month;//显示当月日期
    public int expense;//转出
    public List<TransactionsBean> transactions;
    public ListETransactionRecordBean(boolean isHeader,List<TransactionsBean> transactions){
        this.isHeader = isHeader;
        this.transactions = transactions;
    }

    public static class TransactionsBean implements Serializable {
        /**
         * id : 39
         * orderId : 219975
         * userId : 123123131
         * walletId : 1955891278185435136
         * txnType : 1
         * txnSubType : 1.1
         * amount : 0.01
         * status : 0
         * remark : 123123131
         * clientIp : 123123131
         * deviceId : null
         * riskLevel : 0
         * reviewStatus : 0
         * version : 0
         * createTime : 2025-09-16 17:10:14
         * updateTime : 2025-09-16 17:10:14
         * withdrawAccount : null
         * giftName : null
         * giftId : null
         * num : null
         * price : null
         * totalPrice : null
         * relatedUserId : null
         * rechargeLocation : 123123131
         * thirdPartyOrderNo : wx16171013825115cab94ba1263685610001
         * thirdPartyType : null
         * isDeleted : 0
         * ebalanceAfter : 98576.99
         * ebalanceBefore : 98577
         */

        public int id;
        public String orderId;//交易单号(全局唯一)
        public String userId;//用户ID
        public long walletId;//钱包ID
        public int txnType;//交易类型：1-支出，2-收入
        public String txnSubType;//交易子类型 1.1-微信充值  2.1-提现到微信  2.1-提现到微信//交易子类型 1.1-微信充值  2.1-提现到微信  2.1-提现到微信......
        public double amount;//交易金额
        public int status;//交易状态：0-处理中，1-成功，2-失败，//交易状态：0-处理中，1-成功，2-失败，
        public String remark;//交易备注
        public String clientIp;//客户端IP
        public String deviceId;//设备ID
        public int riskLevel;//风控等级:0-正常,1-可疑,2-高风险
        public int reviewStatus;//复审状态:0-未审核,1-审核通过,2-审核拒绝//复审状态:0-未审核,1-审核通过,2-审核拒绝
        public int version;//乐观锁版本号
        public String createTime;//创建时间
        public String updateTime;//更新时间
        public Object withdrawAccount;//提现账号
        public String giftName;//礼物名称
        public int giftId;//礼物id
        public int num;//赠送礼物数量
        public double price;//单价
        public double totalPrice;//总价
        public Object relatedUserId;//关联用户id
        public String rechargeLocation;//充值位置
        public String thirdPartyOrderNo;//第三方订单号
        public int thirdPartyType;//第三方支付类型
        public int isDeleted;//逻辑删除
        public double ebalanceAfter;//交易后余额
        public double ebalanceBefore;//交易前余额


        public String relatedUserName;//用户名称
        public String relatedUserPortrait;//用户头像
        public String giftPortrait;//礼物头像
    }
}
